const router = require('koa-router')()
const {
  getList
} = require('../controller/mongo')
const { SuccessModel, ErrorModel } = require('../model/resModel')

router.prefix('/api/mongo')

router.get('/list', async function (ctx, next) {

    const listData = await getList()
    ctx.body = new SuccessModel(listData)
})


module.exports = router
